]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspaceThumbnail: Destroy thumbnails on destruction
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 25 May 2021 15:03:46 +0000 (12:03 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 25 May 2021 15:43:32 +0000 (12:43 -0300)
Often, when using multiple monitors, the thumbnails box may be
destroyed before the 'hidden' signal of the Overview is emitted,
which leaves a bunch of lingering signal connections to the
workspace manager.

Call this._destroyThumbnails() in the _onDestroy handler, which
disconnects from workspace manager. This fixes the some of the log
spam that GNOME Shell produces with backtraces of destroyed actors.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1860>

js/ui/workspaceThumbnail.js

index 3a7d916ca263a66ae4823196d3e85b196614cf97..412527c93819fd655721f1e1b32969de33da8916 100644 (file)
@@ -720,6 +720,7 @@ var ThumbnailsBox = GObject.registerClass({
     }
 
     _onDestroy() {
+        this._destroyThumbnails();
         this._unqueueUpdateStates();
 
         if (this._scrollValueId)